\tdplotsetmaincoords{70}{120}
\pgfmathsetmacro{\rvec}{.8} 
\pgfmathsetmacro{\thetavec}{30} 
\pgfmathsetmacro{\phivec}{60}
\begin{center}
\begin{tikzpicture}[scale=1,tdplot_main_coords]
\coordinate (O) at (0,0,0);
\def\l{1}
\draw[] (0,0,0) -- (0,0,0) node[anchor=south east]{$O'$};
\draw[->] (0,0,0) -- (1.6,0,0) node[anchor=north east]{$x'$}; 
\draw[->] (0,0,0) -- (0,1.6,0) node[anchor= west]{$y'$};
\draw[->] (0,0,0) -- (0,0,1.3) node[anchor=south]{$z'$};
\tdplotsetcoord{P}{\rvec}{\thetavec}{\phivec} 
\draw[color=myblue,densely dotted] (O) -- (P)  node[anchor=north west]{$O$}; 
%\draw[dashed] (O) -- (Pxy); 
%\draw[dashed] (P) -- (Pxy);
\tdplotdrawarc[]{(O)}{0.2}{0}{\phivec}{anchor=north}{$\varphi$}
\tdplotsetthetaplanecoords{\phivec}
\tdplotdrawarc[tdplot_rotated_coords]{(0,0,0)}{0.2}{90}{\thetavec}{anchor=south west}{$\lambda$}
\draw[tdplot_rotated_coords] (0,0,0) -- (0,0.8,\rvec/112.5);
\draw[tdplot_rotated_coords] (\rvec,0,0) arc (0:90:\rvec); 
%\draw[] (\rvec,0,0) arc (0:90:\rvec);
\draw[] (0,0,0) circle (\rvec);
\draw[] (Pz) circle (\rvec*0.5);
\draw[->] (0,0.1,1.1) arc (180:450:0.1) node[midway,anchor=east]{$\omega$};
\tdplotsetrotatedcoords{\phivec}{\thetavec}{0}
\tdplotsetrotatedcoordsorigin{(P)}
\draw[color=myblue,tdplot_rotated_coords,->] (0,0,0) -- (1.3,0,0) node[anchor=north west]{$x$};
\draw[color=myblue,tdplot_rotated_coords,->] (0,0,0) -- (0,\l,0) node[anchor=west]{$y$}; \draw[color=myblue,tdplot_rotated_coords,->] (0,0,0)
-- (0,0,\l) node[anchor=south]{$z$};
%\draw[-stealth,color=blue,tdplot_rotated_coords] (0,0,0) -- (.2,.2,.2); %\draw[dashed,color=blue,tdplot_rotated_coords] (0,0,0) -- (.2,.2,0); %\draw[dashed,color=blue,tdplot_rotated_coords] (.2,.2,0) -- (.2,.2,.2);
%\tdplotdrawarc[tdplot_rotated_coords,color=blue]{(0,0,0)}{0.2}{0} {45}{anchor=north west,color=black}{$\phi’$}
%    \tdplotsetrotatedthetaplanecoords{45}
%\tdplotdrawarc[tdplot_rotated_coords,color=blue]{(0,0,0)}{0.2}{0} {55}{anchor=south west,color=black}{$\theta’$}
\draw[tdplot_screen_coords] (O) circle (\rvec);
\end{tikzpicture}
\end{center}
